import { sequelize } from "./sequelize.js";
import '../../Model/Student.js'

export function sync() {
  sequelize.authenticate()
  .then(()=>{
    console.log('连接成功');
    sequelize.sync()
    .then(()=>{
      console.log('迁移成功');
    })
    .catch(err => {
      console.log('迁移失败',err);
    })
  })
  .catch(err => {
    console.log('连接失败',err);
  })
}